package com.itheima.Pojo;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;;


/**
 * @Description 
 * @author PianZhu
 * @date 2025/03/17
 */
public class Student implements Serializable {
	/* 学生编号，主键， */
	private Integer studentId;

	/* 学号，标识一个学生 */
	private Integer studentNumber;

	private String password;

	/* 学生姓名，不能为空 */
	private String name;

	/* 学生性别，'m'代表男，'f'代表女 */
	private String gender;

	/* 学生生日 */
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date birthday;

	/* 学生籍贯 */
	private String origin;

	/* 所属院系的代码，外键，关联到院系表的代码 */
	private Integer departmentCode;

	/* 所在班级的编号，外键，关联到班级表的班级编号 */
	private Integer clazzId;

	private String recordTime;

	public void setRecordTime(String recordTime){
		this.recordTime = recordTime;
	}
	public String getRecordTime() {
          return recordTime;
	}

	public void setStudentId(Integer studentId){
		this.studentId = studentId;
	}
	public Integer getStudentId(){
		return studentId;
	}

	public void setStudentNumber(Integer studentNumber){
		this.studentNumber = studentNumber;
	}
	public Integer getStudentNumber(){
		return studentNumber;
	}

	public void setPassword(String password){
		this.password = password;
	}
	public String getPassword(){
		return password;
	}

	public void setName(String name){
		this.name = name;
	}
	public String getName(){
		return name;
	}

	public void setGender(String gender){
		this.gender = gender;
	}
	public String getGender(){
		return gender;
	}

	public void setBirthday(Date birthday){
		this.birthday = birthday;
	}
	public Date getBirthday(){
		return birthday;
	}

	public void setOrigin(String origin){
		this.origin = origin;
	}
	public String getOrigin(){
		return origin;
	}

	public void setDepartmentCode(Integer departmentCode){
		this.departmentCode = departmentCode;
	}
	public Integer getDepartmentCode(){
		return departmentCode;
	}

	public void setClazzId(Integer clazzId){
		this.clazzId = clazzId;
	}
	public Integer getClazzId(){
		return clazzId;
	}

	@Override
	public String toString() {
		return "学生编号-主键-: " + studentId + "," + "学号-标识一个学生: " + studentNumber + "," + ": " + password + "," + "学生姓名-不能为空: " + name + "," + "学生性别-'m'代表男-'f'代表女: " + gender + "," + "学生生日: " + birthday + "," + "学生籍贯: " + origin + "," + "所属院系的代码-外键-关联到院系表的代码: " + departmentCode + "," + "所在班级的编号-外键-关联到班级表的班级编号: " + clazzId + "," + "学期"+ recordTime;
	}
}